﻿package com.saint.video.videoControls {
	
	import com.saint.utils.ui.GraphicBttn;
	import com.saint.utils.Logger;
	import flash.display.Sprite;
	import com.saint.utils.events.UpdateEvent;
	import com.saint.utils.TextFactory;
	
	public class VideoTimeDisplay extends Sprite {
		
		private var timeDisplay:TextFactory;
		private var _duration:String = "00:00";
		
		public function VideoTimeDisplay():void{
			Logger.info("VideoTimeDisplay loaded");
			
			timeDisplay = new TextFactory("00:00 / 00:00");
			addChild(timeDisplay);
		}
		
		public function set duration(time:String):void {
			_duration = time;
		}
		
		public function updateTime(time:String):void {
			timeDisplay.txt = time + " / " + _duration;
		}
		
	}
}